<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/style/my.css">
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/javascript/my.js"></script>
    
</head> 
<body onpageshow="resetPagination('dg')" style="padding:0px;width:98%">
    {datagrid id="dg" template="/common/datagrid2.tpl" datasource="/invest/StrategyGridDetailService/findAll.do?rows=1000&strategy_id=`$Request.strategy_id`"  view="i_strategy_grid_detail"}
    
    <script>
    field_formatters.price_interval=function (value, row, index){
		if(value){
			return value.toFixed(2);
		}
    }
    field_formatters.total_profit=function (value, row, index){
		if(row['total_sell_amount']){
			return row['total_sell_amount'] - row['total_buy_amount'];
		}
    }
    </script>
</body>
</html>